#ifndef _INPUT_MANAGER_H
#define _INPUT_MANAGER_H

#define Touch_onece		1
#define Touch_long		2

//判断触发事件，事件有触摸屏触碰相应位置和输入字符。从而构建这样一个对象
typedef struct InputEvent{
	struct timeval	tTime;
	int Type;
	int iX;
	int iY;
	int iPressure;
	char iename[1024];
}InputEvent, *PInputEvent; 

//触发事件的设备，设备有触摸屏，外部输入设备如键盘等。构建这样一个对象
typedef struct InputDevice{
	char *name;
	int (*DeviceEvent)(PInputEvent PTInputDevice);
	int	(*Deviceinit)(void);
	int (*Deviceexit)(void);
	struct InputDevice *Ptnext;
}InputDevice, *PInputDevice;

#endif

